{include file="comm/left"}
<body>
<div class="col-sm-6">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>团长店铺管理</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
            </div>
        </div>
        <div class="ibox-content">
            <form class="form-horizontal m-t" id="commentForm" action="{:url('index/admin/colonelupdatedata')}" method="post"  enctype="multipart/form-data">
                <input type="hidden" name="manageid" value="{$Think.get.id}">
                <input type="hidden" name="id" value="0">
                <div class="mail-body">
                    <h4>选择团长【{$res.name}】管理的店铺：</h4>
                </div>
                {foreach $arr as $x=>$z}
                <div class="mail-body">
                    {foreach $z as $a=>$b}
                    <h4>{$x}-{$a}：</h4>
                    {if $b}
                    <p>
                        {foreach $b as $v}
                        <label class="checkbox-inline">
                            <input type="checkbox" value="{$v[1]}"  {if in_array($v[1],$ids)}  checked="checked"  {/if}  id="inlineCheckbox1" name="id[]">{$v[0]}
                        </label>
                        {/foreach}
                    </p>
                    {else}
                    <p>此地区所有店铺已有其他业务员或者团长管理</p>
                    {/if}
                    {/foreach}
                </div>
                {/foreach}
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-3">
                        <button class="btn btn-primary" type="submit" name="submit">确认</button>
                    </div>
                </div>
            </form>
        </div>
    </div >
</div>
</body>